package cn.tedu.backend.portal.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("volunter")
public class Volunteer {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("activity_id")
    private Integer activityId;

    @TableField("user_id")
    private String userId;

    @TableField("activity_title")
    private String activityTitle;

    @TableField("activity_details")
    private String activityDetails;

    @TableField("activity_img")
    private String activityImg;

    @TableField("activity_address")
    private String activityAddress;

    @TableField("activity_time")
    private LocalDateTime activityTime;

    @TableField("duration")
    private Integer duration;

    @TableField("willNum")
    private Integer willNum;

    @TableField("maxNum")
    private Integer maxNum;

    @TableField("activity_city")
    private String activityCity;
}
